package com.internetCafes.spms.web.job.task.customer;

import com.internetCafes.spms.web.customer.service.area.IAreaManagerService;
import com.internetCafes.spms.web.customer.service.area.IAreaSaleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *  区域用户定时器
 */
@Component("entAreaUserTask")
public class EntAreaUserTask {

    @Autowired
    private IAreaManagerService managerService;
    @Autowired
    private IAreaSaleService saleService;

    /**
     * 将过期的管理用户状态更新
     * 需要再管理员系统定时器进行定时器配置
     */
    public void updateExpired() {
        managerService.updateExpiredManager();
        saleService.updateExpiredSale();
    }
}
